package com.pig4cloud.pigx.ruralLibrary.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 资源审核中间表
 * </p>
 *
 * @author ccl
 * @since 2025-02-18
 */
@Data
@TableName("resource_audit")
@EqualsAndHashCode(callSuper = false)
@Schema(description="资源审核中间表")
public class ResourceAudit extends Model<ResourceAudit> {

    private static final long serialVersionUID=1L;

    @Schema(description = "id")
    @TableId(type = IdType.ASSIGN_ID)
    private Long resourceId;

    @Schema(description = "资源名称")
    private String resourceName;

	@Schema(description = "资源文件")
	private String resourceFile;

    @Schema(description = "作者")
    private String author;

    @Schema(description = "简介")
    private String briefIntroduction;

    @Schema(description = "出版社")
    private String press;

    @Schema(description = "大类id")
    private Long dataTypeId;

    @Schema(description = "中图法id")
    private Long bookTypeId;

    @Schema(description = "浏览量")
    private Long pageView;

    @Schema(description = "封面")
    private String cover;

    @Schema(description = "状态 0-待发布 1-已发布")
    private String status;

    @Schema(description = "排序")
    private Long type;

    @Schema(description = "总字数")
    private Long totalWords;

    @Schema(description = "出版时间")
    private Date publishTime;

    @Schema(description = "是否推荐")
    private Integer sfRecommend;

    @Schema(description = "点赞数")
    private Integer likeCount;

    @Schema(description = "是否点赞")
    private Integer sfLike;

    @Schema(description = "是否收藏")
    private Integer sfCollect;

    @Schema(description = "创建人")
    private String createId;

	@TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "审核状态 0-待审核 1-审核中 2-审核通过")
    private String auditStatus;

    @Schema(description = "审核人")
    private String auditPerson;

    @Schema(description = "审核时间")
    private Date auditTime;

    @Schema(description = "省")
    private String province;

    @Schema(description = "市")
    private String city;

    @Schema(description = "县")
    private String area;

}
